package com.itheima.loop;

public class DoWhileDemo5 {
    public static void main(String[] args) {
        //用do...while循环实现打印10次hello
        int i = 1;
        do {
            System.out.println("hello");
            i++;
        } while (i <= 10);

        System.out.println("----------------------");
        //do..while循环至少执行一次，不管条件是否成立
        do {
            System.out.println("hello");
        } while (false);

    }
}